package com.zengqingfa.tx;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @fileName: Test
 * @author: zengqf3
 * @date: 2021-3-10 17:20
 * @description:
 */
public class Test {

    public static void main(String[] args) throws Exception {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
        ServiceA bean = context.getBean(ServiceA.class);
        bean.a();
    }
}
